#ifndef _SELECTION_BOX_MANAGER_H_
#define _SELECTION_BOX_MANAGER_H_

#include "SelectionBox.h"
#include "SceneManager.h"
#include <set>

class SelectionBoxManager
{
public:
	SelectionBoxManager(class SceneManager* pSceneManager);
	~SelectionBoxManager();

	void add(osg::Node* pNode);
	void remove(osg::Node* pNode);

private:
        typedef std::map< osg::ref_ptr<osg::Node>, osg::ref_ptr<osg::PositionAttitudeTransform> > SelectionBoxMap;

	SelectionBoxMap m_SelectionBoxes;
	osg::ref_ptr<SceneManager> m_rSceneManager;
	osg::ref_ptr<SelectionBox> m_rSelectionBox;
};

#endif
